HADOOP-18168. Fix S3A ITestMarkerTool dep. on purged public bucket, introduce PublicDatasetTestUtils#4140
Conversation
|
Integration tests passing against |
hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/tools/ITestMarkerTool.java
Outdated
Show resolved
Hide resolved
hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/S3ATestConstants.java
Outdated
Show resolved
Hide resolved
|
Integration tests not currently passing with this commit, diving deeper here. |
|
Tests passing against |
steveloughran
left a comment
There was a problem hiding this comment.
looks good, only some minor tweaks.
it is going to need a mention in the testing doc though as now there's a new option which needs to be set when testing against non-aws stores
hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/PublicDatasetTestUtils.java
Outdated
Show resolved
Hide resolved
hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/S3ATestConstants.java
Outdated
Show resolved
Hide resolved
hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/ITestS3ARequesterPays.java
Outdated
Show resolved
Hide resolved
|
Tested latest patch against |
|
Thanks @steveloughran, I've added a note to I am hoping that if we get all public datasets into For now, I have not tried to move the CSV Scale tests but I'd like to see them moved in a future patch. |
steveloughran
left a comment
There was a problem hiding this comment.
+1 for this; will cherrypick to branch 3.3 too
…4140) This moves off use of the purged s3a://landsat-pds bucket, so fixing tests which had started failing. * Adds a new class, PublicDatasetTestUtils to manage the use of public datasets. * The new test bucket s3a://usgs-landsat/ is requester pays, so depends upon HADOOP-14661. Consult the updated test documentation when running against other S3 stores. Contributed by Daniel Carl Jones Change-Id: Ie8585e4d9b67667f8cb80b2970225d79a4f8d257
|
merged to trunk, albeit with the commit message partially cut. reverted that and recommitted with the full text. test with branch-3.3 in progress |
…4140) This moves off use of the purged s3a://landsat-pds bucket, so fixing tests which had started failing. * Adds a new class, PublicDatasetTestUtils to manage the use of public datasets. * The new test bucket s3a://usgs-landsat/ is requester pays, so depends upon HADOOP-14661. Consult the updated test documentation when running against other S3 stores. Contributed by Daniel Carl Jones Change-Id: Ie8585e4d9b67667f8cb80b2970225d79a4f8d257
This moves off use of the purged s3a://landsat-pds bucket, so fixing tests which had started failing. * Adds a new class, PublicDatasetTestUtils to manage the use of public datasets. * The new test bucket s3a://usgs-landsat/ is requester pays, so depends upon HADOOP-14661. Consult the updated test documentation when running against other S3 stores. Contributed by Daniel Carl Jones
This reverts commit 6ab7b72.
…pache#4140) This moves off use of the purged s3a://landsat-pds bucket, so fixing tests which had started failing. * Adds a new class, PublicDatasetTestUtils to manage the use of public datasets. * The new test bucket s3a://usgs-landsat/ is requester pays, so depends upon HADOOP-14661. Consult the updated test documentation when running against other S3 stores. Contributed by Daniel Carl Jones Change-Id: Ie8585e4d9b67667f8cb80b2970225d79a4f8d257
Description of PR
Addressing HADOOP-18168, this change replaces the use of
landsat-pdswith its successor usgs-landsat, another public dataset.landsat-pdsrecently was cleaned up excluding some specific files and is no longer suitable for this test case.usgs-landsatis a requester pays bucket, so costs will not be passed on to the owner of the bucket - instead, they will be paid by the test runner.We introduce a new class
PublicDatasetTestUtilswhich provides a simple interface for getting file systems for a specific purpose. This change allows the bucket used to be replaced or for the tests to be skipped - for example, for S3-compatible stores or non-awspartition S3 endpoints.How was this patch tested?
It will be tested from a
eu-west-1EC2 instance against aeu-west-1bucket.